#FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
#WORKDIR /app
#EXPOSE 80
#
#FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
#WORKDIR /src
#COPY ["applications/AuthServer.Host/AuthServer.Host.csproj", "applications/AuthServer.Host/"]
#COPY ["shared/MsDemo.Shared/MsDemo.Shared.csproj", "shared/MsDemo.Shared/"]
#RUN dotnet restore "applications/AuthServer.Host/AuthServer.Host.csproj" -nowarn:msb3202,msb3277,nu1503
#COPY . .
#WORKDIR "/src/applications/AuthServer.Host"
#RUN dotnet build "AuthServer.Host.csproj" --no-restore -nowarn:msb3202,msb3277,nu1503 -c Release -o /app/build
#
#FROM build AS publish
#RUN dotnet publish "AuthServer.Host.csproj" --no-restore -nowarn:msb3202,msb3277,nu1503 -c Release -o /app/publish
#
#FROM base AS final
#WORKDIR /app
#COPY --from=publish /app/publish .
#ENTRYPOINT ["dotnet", "AuthServer.Host.dll"]


FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 44398

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
 


FROM build AS publish
COPY publish/ .


FROM publish AS final

ENV ASPNETCORE_ENVIRONMENT Test

ENTRYPOINT ["dotnet", "AuthServer.Host.dll"]